package com.scenic.common.service;

import com.github.pagehelper.PageInfo;
import com.scenic.common.bean.StrategyGuide;
import com.scenic.common.exception.ScenicSpotException;

import java.util.List;

public interface StrategyGuideService {
    //添加
    Long insert(StrategyGuide strategyGuide);
    //根据id删除
    boolean delete(Long id, Integer userId) throws ScenicSpotException;
    //修改
    boolean update(StrategyGuide strategyGuide,  Integer userId) throws ScenicSpotException;
    //根据条件查询
    List<StrategyGuide> selectByCondition(StrategyGuide condition);
    PageInfo<StrategyGuide> selectByPage(Integer pageNum, Integer pageSize, StrategyGuide condition);
    //根据id查询
    StrategyGuide selectById(Long id);
}
